import {get, post} from '../utils/request'
// 列表
const getList=(params:any)=>{
  return get("news/list",params);
}
// 分类
const getType = (params:any)=>{
  return get("newstype/list",params)
}
//添加
const getAdd = (data:any)=>{
  return post("news/add",data)
}
//单删
const getDelete = (params:any)=>{
  return get("news/delete",params)
}
// 批删
const getDeleteall = (data:any)=>{
  return post("news/deleteall",data)
}
//单条数据信息
const getNews = (params:any)=>{
  return get("news/get",params)
}
export {getList,getType,getAdd,getDelete,getDeleteall,getNews}